<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class UserweiModel extends RelationModel{
	public $_validate	=	array(
		//array('account','/^[a-z]\w{3,}$/i','帐号格式错误',1),
		//array('account','require','账号必须',1),
		//array('nickname','require','姓名必须',1),
		//array('repassword','require','确认密码必须',1),
		//array('repassword','password','确认密码不一致',1,'confirm'),
		//array('account','','帐号已经存在！',1,'unique',3), 
		);
	protected  $_link = array(
 		'user'=> array(  
     		'mapping_type'=>self::BELONGS_TO,
          	'class_name'=>'user',//对应的表名
          	'foreign_key'=>'userid',//外键名称
          	'mapping_name'=>'user',//查询完的集合名称
 		),
	);
}
?>